package anatex.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import anatex.domain.CustomLocale;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findCategorysByNameAndLocale" })
public class Category {

    @NotNull
    private String name;

    @NotNull
    @ManyToOne
    private CustomLocale locale;
}
